package com.socialuni.sdk.factory.user.base;

import com.socialuni.sdk.api.model.RO.user.base.SocialUserNoIdRO;
import com.socialuni.sdk.model.DO.user.UserDO;

public class SocialUserNoIdROFactory {
    public static SocialUserNoIdRO newUserNoIdRO(UserDO userDO) {
        //user基础信息
        SocialUserNoIdRO user = new SocialUserNoIdRO();
        user.setNickname(userDO.getNickname());
        user.setAvatar(userDO.getAvatar());
        user.setGender(userDO.getGender());
        user.setAge(userDO.getAge());
        user.setCity(userDO.getCity());
        return user;
    }
}
